
ejs_context_elemt = new Array;
ejs_context_elemt[0] = 'firefox|document.location.href=\'firefox\'';
ejs_context_elemt[1] = 'internet-explorer|document.location.href=\'internet-explorer\'';
ejs_context_elemt[2] = 'chrome|document.location.href=\'chrome\'';
function ejs_context_position(e)
{
    ejs_context_x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
    ejs_context_y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
}

function ejs_context_open()
{
    document.getElementById("ejs_context_box").style.top = ejs_context_y+"px";
    document.getElementById("ejs_context_box").style.left = ejs_context_x+"px";
    document.getElementById("ejs_context_ombre").style.top = ejs_context_y+2+"px";
    document.getElementById("ejs_context_ombre").style.left = ejs_context_x+2+"px";
    document.getElementById("ejs_context_box").style.visibility = "visible";
    document.getElementById("ejs_context_ombre").style.visibility = "visible";
    return(false);
}

function ejs_context_close()
{
    if (document.getElementById)
    {
        document.getElementById("ejs_context_box").style.top = 0;
        document.getElementById("ejs_context_box").style.left = 0;
        document.getElementById("ejs_context_ombre").style.top = 0;
        document.getElementById("ejs_context_ombre").style.left = 0;
        document.getElementById("ejs_context_box").style.visibility = "hidden";
        document.getElementById("ejs_context_ombre").style.visibility = "hidden";
    }
}

function ejs_context_hl(mode, element)
{
    if(mode == 1)
    {
        element.style.background = '#316AC5';
        element.style.color = '#ffffff';
    }
    else
    {
        element.style.background ='#ffffff';
        element.style.color = '#000000';
    }
}

if(navigator.appName.substring(0,3) == "Net")
    document.captureEvents(Event.MOUSEMOVE);